/**
 * @description 邮箱验证码
 * @author LI
 * @date 2020-11-12 19:38
 */

import { ApiProperty } from '@nestjs/swagger'
import { IsEmail, IsNotEmpty } from 'class-validator'

export class EmailCodeDto {
  @ApiProperty({ description: '注册的邮箱', example: '123@qq.com' })
  @IsNotEmpty({ message: '邮箱不能为空' })
  @IsEmail({}, { message: '邮箱格式不正确' })
  readonly loginEmail: string
}
